%-------------------------------------------------------------------------
%
% Latex-Beamer theme.
%
% Author: Xian Qiu
% Last update: Oct 9, 2017
%
% ------------------------------------------------------------------------

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{themeink}

\mode<presentation>


%-------------------------------------------------------------------------
% Loading packages
%-------------------------------------------------------------------------
\RequirePackage{tikz}
\RequirePackage{pgfopts}
\RequirePackage[absolute,overlay]{textpos}
\setlength{\TPHorizModule}{1cm}
\setlength{\TPVertModule}{1cm}
\textblockorigin{0cm}{0cm}

%-------------------------------------------------------------------------
% Options
%-------------------------------------------------------------------------
\DeclareOptionBeamer{print}{\gdef\tts@print{}} % Print option
\ProcessOptionsBeamer\relax


%-------------------------------------------------------------------------
% Commands
%-------------------------------------------------------------------------
\input{ink/cmd}


%-------------------------------------------------------------------------
% Colors
%-------------------------------------------------------------------------
\input{ink/color}

%-------------------------------------------------------------------------
% Fonts
%-------------------------------------------------------------------------
\input{ink/font}


%-------------------------------------------------------------------------
% Layout
%-------------------------------------------------------------------------
\newlength{\leftrightmargin}
\setlength{\leftrightmargin}{1cm} % this is the default left margin and right margin
\setbeamersize{text margin left =\leftrightmargin, text margin right = \leftrightmargin}


%-------------------------------------------------------------------------
% Title page
%-------------------------------------------------------------------------
\input{ink/titlepg}
\setbeamertemplate{title page}[tts]
% ensure that the titlepage is 'plain'
\def\maketitle{\ifbeamer@inframe\titlepage\else\frame[plain]{\titlepage}\fi}


%-------------------------------------------------------------------------
% Outer frame
%-------------------------------------------------------------------------
\setbeamertemplate{navigation symbols}{}

% Frametitle
\input{ink/frametitle}
\setbeamertemplate{frametitle}[text left] % Two options: <text left> and <text center> 

% Footline
\input{ink/footline}


%-------------------------------------------------------------------------
% Inner frame
%-------------------------------------------------------------------------

% itemize item symbol
\defbeamertemplate{itemize item}{tts@triangle}{\textcolor{black!50}{$\filledtriangleright$}}
\defbeamertemplate{itemize item}{tts@square}{\textcolor{black!25}{\scriptsize $\blacksquare$}}
\setbeamertemplate{itemize item}[tts@triangle]

% itemize subitem symbol
\defbeamertemplate{itemize subitem}{tts@star}{\textcolor{black!50}{$\filledstar$}}
\setbeamertemplate{itemize subitem}[tts@star]

% block
\input{ink/block}

% baselineskip


%-------------------------------------------------------------------------
% Frames: chapterframe, thanksframe
%-------------------------------------------------------------------------
\input{ink/frame}

\mode<all> 
